from django.apps import AppConfig
from suit.apps import DjangoSuitConfig
from suit.menu import ParentItem, ChildItem


class ModelConfig(AppConfig):
    name = 'model'
    verbose_name = '模型管理'


class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = (
        ParentItem('模型管理', children=[
            ChildItem(model='model.port'),
            ChildItem(model='model.preprocess'),
            ChildItem(model='model.models'),
            ChildItem(model='model.postprocess'),
            ChildItem('说明', url='/model/custom/'),
        ], icon='fa fa-leaf'),
        # ParentItem('Right Side Menu', children=[
        #     ChildItem('Password change', url='admin:password_change'),
        #     ChildItem('Open Google', url='http://google.com', target_blank=True),
        #
        # ], align_right=True, icon='fa fa-cog'),
    )



